package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.app.Community;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CommunityMapper {

    Map indexInfoCount(@Param("operatorId")Long operatorId);

    int deleteByPrimaryKey(Long id);

    int insert(Community record);

    int insertSelective(Community record);

    Community selectByPrimaryKey(Long id);

    Community selectByName(String communityName);

    List<Community> communityList(@Param("community") Community community,@Param("list")List<Long> ids);

    Map<String ,Long> selectDeviceAmount(Long communityId);

    List<Map> operatorCommunityList(String operatorName);

    List<Community> getAll(@Param("communityName")String communityName,@Param("appId")String appId);

    int updateByPrimaryKeySelective(Community record);

    int updateByPrimaryKey(Community record);
}